function addRegions() {                                    
    $('#regions').html('');
    id = $('#geography').val();
    count = id.length;                                        
    for (i = 0; i < count; i++) {  
        $.getJSON("/ajax/regions", {id: id[i]}, function(data) {            
            countRegions = data.regions.length;
            for (j = 0; j < countRegions; j++) {                
                select = '<option value="'+data.regions[j].id+'">'+data.regions[j].name+'</option>';                                                        
                $('#regions').append(select);
            }            
        });                                       
    }   
}